package com.zerdoor.service.impl;

import com.zerdoor.dao.PrincipalDao;
import com.zerdoor.service.PrincipalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by xiaoji on 2014/11/14.
 */
@Service
public class PrincipalServiceImpl implements PrincipalService {

    @Autowired
    private PrincipalDao principalDao;

    @Override
    public Map<String, Object> getPriInfos(Integer userId) {
        return principalDao.getPriInfos(userId);
    }

    @Override
    public List<Map<String, Object>> getPrincipTask(Integer userId) {
        return principalDao.getPrincipTask(userId);
    }

    @Override
    public List<Map<String, Object>> getPrincipRace(Integer baileId) {
        return principalDao.getPrincipRace(baileId);
    }

    @Override
    public List<Map<String, Object>> getPrincipAppraise(Integer userId) {
        return principalDao.getPrincipAppraise(userId);
    }
}
